package com.hc.service;

import com.hc.bean.ShopCart;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ShopCartService {
    /*添加购物车*/
    Boolean addShopCart(ShopCart shopCart);

    /*修改购物车*/
    Boolean updateShopCart(ShopCart shopCart);

    /*移出购物车*/
    Boolean deleteShopCart(String shopCartIds);

    /*根据商品id查询,判断该商品是否已在购物车*/
    ShopCart getShopCartByPid(Integer userId,Integer pid);

    /*根据用户id查询购物车信息*/
    List<ShopCart> getShopCartByUid(Integer uid);
}
